﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Collections.ObjectModel;
using DbSetupHelper.Common;
using System.IO;

namespace DbSetupHelper.Plugin.ScriptPackage
{
    /// <summary>
    /// Provides a way for DbSetupHelper to get the script package data.
    /// </summary>
    public interface IScriptPackage
    {
        /// <summary>
        /// Fetches the control XML stream.
        /// </summary>
        /// <returns></returns>
        Stream FetchControlXmlStream();

        /// <summary>
        /// Fetches the SQL script.
        /// </summary>
        /// <param name="scriptName">Name of the script.</param>
        /// <returns></returns>
        Stream FetchSqlScript(string scriptName);
    }
}
